﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Audio;

namespace DELVE_GAME.ViewStructure.GameActions
{
    class NextStageGameAction : GameAction
    {
        private View view;
        private SoundEffectInstance sound;
        public NextStageGameAction(View targetView, SoundEffectInstance sound = null)
        {
            view = targetView;
            this.sound = sound;
        }

        public override void doAction()
        {
            if (sound != null) sound.Play();
            view.gotoNextStage();
        }
    }
}
